package com.lagou.edu.dao;

import com.lagou.edu.entity.TokenEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TokenRepository extends JpaRepository<TokenEntity, Long> {

    TokenEntity findByEmail(String email);
    TokenEntity findByToken(String token);
    TokenEntity findByEmailAndToken(String email, String token);
//    List<TokenEntity> findByEmailAndToken(String email, String token);
//    List<TokenEntity> findByEmail(String email);
}
